package com.alison.base;

import java.util.regex.Pattern;

/**
 * @Author alison
 * @Date 2024/4/13 12:48
 * @Version 1.0
 * @Description
 */
public class PatternTest {

    public static void main(String[] args) {
        String url = "/blog/tags/puppet?flav=rss20";
        url = "/favicon.ico";
        String regex = "^((?!\\.(css|js|png|ico)$).)*$";
        boolean matches = Pattern.matches(regex, url);
        System.out.println(matches);
    }

}
